Eclipse Platform
Pre-release 3.0

org.eclipse.team.core.subscribers
Class TeamDelta

java.lang.Object
  extended byorg.eclipse.team.core.subscribers.TeamDelta

public class TeamDelta
extends Object

A team delta represents changes in the team state.

See Also:
IResource, ITeamProvider

Field Summary
static int NO_CHANGE
          Delta kind constant indicating that the resource has not been changed in any way
static int PROVIDER_CONFIGURED
          Delta kind constant (bit mask) indicating that a team provider has been configured on the resource.
static int PROVIDER_DECONFIGURED
          Delta kind constant (bit mask) indicating that a team provider has been de-configured on the resource.
static int SYNC_CHANGED
          Delta kind constant (bit mask) indicating that the synchronization state of a resource has changed.
 
Constructor Summary
TeamDelta(TeamSubscriber subscriber, int flags, IResource resource)
           
 
Method Summary
static TeamDelta[] asSyncChangedDeltas(TeamSubscriber subscriber, IResource[] resources)
          Returns an array of deltas for the resources with TeamDelta.SYNC_CHANGED as the change type.
 int getFlags()
           
 IResource getResource()
           
 TeamSubscriber getSubscriber()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_CHANGE

public static final int NO_CHANGE
Delta kind constant indicating that the resource has not been changed in any way

See Also:
IResourceDelta#getKind, Constant Field Values

SYNC_CHANGED

public static final int SYNC_CHANGED
Delta kind constant (bit mask) indicating that the synchronization state of a resource has changed.

See Also:
Constant Field Values

PROVIDER_CONFIGURED

public static final int PROVIDER_CONFIGURED
Delta kind constant (bit mask) indicating that a team provider has been configured on the resource.

See Also:
IResourceDelta#getKind, Constant Field Values

PROVIDER_DECONFIGURED

public static final int PROVIDER_DECONFIGURED
Delta kind constant (bit mask) indicating that a team provider has been de-configured on the resource.

See Also:
IResourceDelta#getKind, Constant Field Values
Constructor Detail

TeamDelta

public TeamDelta(TeamSubscriber subscriber,
                 int flags,
                 IResource resource)
Method Detail

getFlags

public int getFlags()

getResource

public IResource getResource()

getSubscriber

public TeamSubscriber getSubscriber()

asSyncChangedDeltas

public static TeamDelta[] asSyncChangedDeltas(TeamSubscriber subscriber,
                                              IResource[] resources)
Returns an array of deltas for the resources with TeamDelta.SYNC_CHANGED as the change type.

Parameters:
resources - the resources whose sync info has changed
Returns:

Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.